<div class="articles form">
<?php echo $this->Session->flash('good');?>
<?php echo $this->ExtendedForm->create('Article', array('class' => 'form-horizontal', 'novalidate' => 'novalidate'));?>
	<fieldset>
        <legend><?php echo __d('admin', 'Edit Article'); ?></legend>
	<?php
		if(isset($this->request->params['named']['article_id'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('article_id', array_merge(array('label' => __d('admin', 'Article'))));
		if(isset($this->request->params['named']['article_id'])) echo '</div>';
	
        if(isset($this->request->params['named']['title'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('title', array_merge(array('label' => __d('admin', 'Title *'))));
		if(isset($this->request->params['named']['title'])) echo '</div>';
		
		if(isset($this->request->params['named']['title_en'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('title_en', array_merge(array('label' => __d('admin', 'Title En'))));
		if(isset($this->request->params['named']['title_en'])) echo '</div>';
        
		if(isset($this->request->params['named']['full_text'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('full_text', array_merge(array('label' => __d('admin', 'Full Text *'), 'before' => '<div class="col-sm-10">', 'after' => '</div>')));
		if(isset($this->request->params['named']['full_text'])) echo '</div>';
		
		if(isset($this->request->params['named']['full_text_en'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('full_text_en', array_merge(array('label' => __d('admin', 'Full Text En'), 'before' => '<div class="col-sm-10">', 'after' => '</div>')));
		if(isset($this->request->params['named']['full_text_en'])) echo '</div>';

		if(isset($this->request->params['named']['meta_key'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('meta_key', array_merge(array('label' => __d('admin', 'Meta Key'), 'before' => '<div class="col-sm-10">', 'after' => '</div>')));
		if(isset($this->request->params['named']['meta_key'])) echo '</div>';

		if(isset($this->request->params['named']['meta_desc'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('meta_desc', array_merge(array('label' => __d('admin', 'Meta Desc'), 'before' => '<div class="col-sm-10">', 'after' => '</div>')));
		if(isset($this->request->params['named']['meta_desc'])) echo '</div>';
		
		//echo '<div class="form-group row"><div class="col-sm-4">';
		//echo $this->Form->checkbox('is_show', array('hiddenField' => false, 'class' => 'input')) . ' Show';
		//echo '</div></div>';
	?>
	</fieldset>
    <input type="hidden" name="data[Article][article_category_id]" value="2">
<?php echo $this->ExtendedForm->end(array('label' => __d('admin', 'Save Article'), 'class' => 'btn btn-primary', 'div' => false, 'before' => '<div class="control-group"><div class="controls">', 'after' => "\n" . $this->Html->link(__d('admin', 'Cancel'), $redirectUrl, array('class' => 'btn btn-default')) . '</div></div>'));?>
</div>